package com.ssy.lingxi.enhance.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 审核 - DTO
 * @author fhj
 * @date 2020/10/21
 * @version 2.0.0
 */
@Data
public class ExamDTO {

    @NotNull(message = "ID不能为空")
    @ApiModelProperty(value = "ID")
    private Long id;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty("状态：0-审核不通过 1-审核通过")
    private Integer status;

    @ApiModelProperty("原因")
    private String cause;

    @ApiModelProperty(value = "发货信息（加工企业 - 待提交审核生产通知单 - 提交审核时, 不能为空）")
    private DeliveryMessage deliveryMessage;

    @Data
    public static class DeliveryMessage {

        @ApiModelProperty(value = "发货地址id")
        private Long deliveryAddressId;

        @ApiModelProperty(value = "发货地址")
        private String deliveryAddress;

        @ApiModelProperty(value = "发货人姓名")
        private String deliveryUserName;

        @ApiModelProperty(value = "发货人电话")
        private String deliveryUserTel;
    }
}
